package Song.Han.day04.demo01;

import java.util.Scanner;

/*
* 题目：键盘输入3个int数字，并求出最大值*/
public class Demo03ScannerMax {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入第一个数：");
        int a = sc.nextInt();
        System.out.println("请输入第二个数：");
        int b = sc.nextInt();
        System.out.println("请输入第三个数：");
        int c = sc.nextInt();
        int max = a;

        if (max < b)
            max = b;
        else if (max < c)
            max = c;

        System.out.println("最大值是："+max);
    }
}
